import request from '@/utils/axios'
import {
  URL_API
} from '@/utils/mUtils'
const base = URL_API()

//新增GPS设备  
export function CompanyGpsCreate(params) {
    return request({
      url: `${base}/api/company/gps/create`,
      method: 'post',
      data: params,
      headers: {
        "token": '1ba4686338ee7354395ad13f7d3466c1'
      },
    })
  }
//GPS设备列表
export function CompanyGpsList(params) {
    return request({
      url: `${base}/api/company/gps/list`,
      method: 'post',
      data: params,
      headers: {
        "token": '1ba4686338ee7354395ad13f7d3466c1'
      },
    })
  }

  //删除设备列表  
  export function CompanyGpsDelete(params) {
    return request({
      url: `${base}/api/company/gps/delete`,
      method: 'delete',
      data: params,
      headers: {
        "token": '1ba4686338ee7354395ad13f7d3466c1'
      },
    })
  }

  //编辑设备
  export function CompanyGpsUpdate(params) {
    return request({
      url: `${base}/api/company/gps/update`,
      method: 'put',
      data: params,
      headers: {
        "token": '1ba4686338ee7354395ad13f7d3466c1'
      },
    })
  }

  //设备详情  
  export function CompanyGpsDetail(params) {
    return request({
      url: `${base}/api/company/gps/detail`,
      method: 'post',
      data: params,
      headers: {
        "token": '1ba4686338ee7354395ad13f7d3466c1'
      },
    })
  }
